//
//  RJDetailBox.h
//  AirQuality
//
//  Created by Po on 15/3/17.
//  Copyright (c) 2015年 Po. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, RJDetailBoxDirection)
{
    DetailBoxDirectionTop,
    DetailBoxDirectionDown,
    DetailBoxDirectionLeft,
    DetailBoxDirectionRight
};

@protocol RJDetailBoxDelegate;

@interface RJDetailBox : UIView

@property (assign, nonatomic) id<RJDetailBoxDelegate> delegate;

/**初始化函数，detail为详情数组*/
- (instancetype)initWithBoxFrame:(CGRect)frame detail:(NSArray *)detailArray;
+ (instancetype)detailBoxWithBoxFrame:(CGRect)frame detail:(NSArray *)detailArray;

/**显示*/
- (void)show;
- (void)showWithAnim;
//设置动画方向
- (void)setAnimDirection:(RJDetailBoxDirection)direction;
@end


@protocol RJDetailBoxDelegate <NSObject>

- (void)RJDetailBoxDelegate:(RJDetailBox *)detailBox DidSelected:(NSUInteger)row;

@end
